package com.weiyi.chat.api;

import com.weiyi.chat.domain.User;

/**
 * Created by Administrator on 2016/12/5.
 */

public interface ILogin
{
    public interface Views
    {
        /**
         * 登录成功
         */
        void onLoginSucess(User userBean);
        /**
         * 当验证码获取成功
         */
        void onRequestSmsSucess();

        void showError(String msg);
    }

    public interface presenter
    {
        void smsLogin(String user_phone, String sms);//验证码登录

        void pswLogin(String account, String psw);//账号密码登录

        void requestSms(String phoneNum);//请求验证码

        void loadingDatasFromCache();//缓存获取数据
    }

}
